<layout name='layout_page' />

<div class="row">
	<div class="col-lg-12">
		<div class="row">
			<div class="col-lg-12">
				<ol class="breadcrumb">
					<li><a href="<{:U('Index/index')}>">Home</a></li>
					<li>My mentors</li>
					<li class="active"><span>Request</span></li>
				</ol>
				<h1>Request</h1>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-lg-6">
		<div class="main-box clearfix">			
			<div class="main-box-body clearfix">
				<form id="ajaxForm" action="<{:U('Request/save')}>" method="post" class="form-horizontal form-validata">
				<div class="request">
					<div class="userInfo">
						<img src="<{$mentor['face']|getFace=###}>">
						<span><strong><{$mentor['nickname']}></strong><br/><{$mentor['createTime']|date="F,d,Y H:i:s",###}></span>
					</div>
					<li>
						<label>Training ability </label>
						<div>
						<volist name="mentor['trainItem']" id="vo"><p style="display: inline; margin-right: 20px;" class="train"><{$vo['name']}></p></volist>
						</div>
					</li>
					<li>
						<label>self description</label>
						<p><{$mentor['description']}></p>
					</li>
					<li>
						<label>Status</label>
						<div class="form-group">
							<div class="radio">
								<input type="radio" name="status" id="optionsRadios2" value="1" <eq name="list['status']" value="1">checked="checked"</eq>>
								<label for="optionsRadios2">Accept</label>
							</div>
							<div class="radio">
								<input type="radio" name="status" id="optionsRadios3" value="2" <eq name="list['status']" value="2">checked="checked"</eq>>
								<label for="optionsRadios3">Reject</label>
							</div>
						</div>
					</li>
					<li>
						<label>Reasons for refusal</label>
						<textarea class="form-control" name="remark" id="remark" rows="5" style="width:500px"><{$list['remark']}></textarea>
					</li>
					<li>
						<button type="submit" id="myBtn" class="btn btn-success"><{:L('_public_submit')}></button>
					</li>					
				</div>
				<input type="hidden" name="id" value="<{$list['id']}>">
				</form>
			</div>
		</div>
	</div>
	<div class="col-lg-6">
		<div class="main-box clearfix">
			<div class="main-box-body clearfix">
				<div class="request">
					<div class="userInfo">
						<h1 style="padding: 0px;margin:0px;">My Needs</h1>
					</div>
					<li>
						<label>Project</label>
						<p class="train"><{$list['trainItem']}></p>
					</li>
					<li>
						<label>Current skills</label>
						<p><{$list['skills']}></p>
					</li>
					<li>
						<label>Target</label>
						<p><{$list['target']}></p>
					</li>
					<li>
						<label>Training experience</label>
						<p><{$list['train']}></p>
					</li>
					<li>
						<label>Work experience</label>
						<p><{$list['work']}></p>
					</li>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	//validation验证
	ajaxForm();
});
</script>